export default [
  {
    name: 'root',
    path: '/',
    //自行实现layout
    // component: () => import('@/layout/index.vue'),
    redirect: '/home',
    children: [
      {
        name: 'home',
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
          icon: '/src/assets/logo.webp'
        }
      }
    ],
    meta: {
      title: import.meta.env.VITE_APP_TITLE,
      icon: '/src/assets/logo.webp'
    }
  },
  // 别的页面（404）
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@/views/404/index.vue'),
    meta: {
      title: '404 NOT FOUND',
      icon: '/src/assets/logo.webp'
    }
  }
]
